package com.zwh.autoconfigure.web;

import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.boot.context.properties.EnableConfigurationProperties;
import org.springframework.stereotype.Component;

import java.nio.charset.Charset;
import java.nio.charset.StandardCharsets;

/**
 * @author monkey
 * @date 2020/6/12 16:25
 **/
//@Component
//@ConfigurationProperties(prefix = "spring.http.encoding")
public class HttpEncodingProperties {
    private Charset charset= StandardCharsets.UTF_8;

    public Charset getCharset() {
        return charset;
    }

    public void setCharset(Charset charset) {
        this.charset = charset;
    }
}
